<html xmlns:th="http://www.thymeleaf.org">
	<div th:fragment="signin">
		<div class="jichu kaoqin " style="cursor: pointer;">
			<div class="wenzi">
				<a class="attendce" style="text-decoration: none; color:white;">
					<h2 th:text="${attends != null ? attends.attendHmtime : '未签到'}">
						未签到
					</h2>
				</a>
				<p>
					点击<span class="glyphicon glyphicon-hand-up"></span>
					<span th:text="${attends != null ? type : '签到'}">签到</span>
				</p>
			</div>
			<div class="iconfont">
				<span class="glyphicon glyphicon-time"></span>
			</div>
			<a  th:href="@{/attendcelist}" class="moreduo"> 更多
				<span class="glyphicon glyphicon-circle-arrow-right"></span>
			</a>
		</div>
		<script th:inline="javascript">
			//获取应用路径
			var contextPath = [[${#request.getContextPath()}]];
		</script>
		<script>
			$(".attendce").on('click',function(){
				confirm("您确定签到吗");
				$("#refresh").load(contextPath + '/singin');
			});
		</script>
		<th:block th:if="${error == '1'}">
			<script>
				$(function(){
					alert("亲 不能签到，不在正常签到时间内！");
				})
			</script>
		</th:block>

		<th:block>
			<script th:if="${error == '2'}">
				$(function(){
					alert("亲 还没有到签到时间哦");
				})
			</script>
		</th:block>
	</div>
</html>